package com.hue.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @GetMapping("/storage/update/{productId}/{count}")
    public void updateStorage(@PathVariable("productId")long productId, @PathVariable("count") int count);
}
